<?php

/**
* This particular view trait does very little, just passing through the internal representation which happens to be JSON-able
*/ 
class Nop_Json implements Nop_View_Trait {
    public function View($id) {
        return $this->Read($id);
    }

    public function Edit($id) {
        return $this->Read($id);
    }

    public function Save($id, $data) {
        if ($id) return $this->Update($id, $data);
        else return $this->Create($data);
    }

    public function Remove($id) {
        return $this->Delete($id);
    }
}
?>